#ifndef ICONPROVIDER_HPP
#define ICONPROVIDER_HPP
#include "fileview/FileView.hpp"

class IconProvider
	:public QObject
{
	Q_OBJECT
public:
	IconProvider();
	static IconProvider *instance();
	
	QIcon getDefaultIcon();
	QIcon getIcon(const FileEntry *file, FileListWidget *list);
	
protected:
	QIcon getIcon(string type, string extension);
	
	QIcon dirIcon;
	QIcon genericIcon;
};

#endif
